

    <div class="widget-top">
        <h4>Nouveau groupe</h4>
    </div>
    <div class="form-grid">
        <form id="form_groupe1" class="leftLabel" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
            <ul>
            <li>
                <label class="fldTitle">Numero</label>
                <div class="fieldwrap">
                    <span class="fldcol left">
                    {{form_widget(form.numero,{'attr':{'class':'full'}})}}  
                    </span> 
               </div>
            </li>
            <li>
                <label class="fldTitle">Filiere</label>
                <div class="fieldwrap">
                    <span class="fldcol left">
                    {{form_widget(form.filiere,{'attr':{'class':'full'}})}} 
                    {{form_widget(form._token)}}
                    </span> 
               </div>
            </li>
            <li class="buttons bottom-round noboder" >
                <div class="fieldwrap" style="margin-left: 583px;">
                    <input onclick="saveGroupe()" class="submit-button" type="button" value="{{ 'Submit'|trans({}, 'FOSUserBundle') }}" name="">
                    <input class="submit-button" type="reset" value="{{ 'Reset'|trans({}, 'FOSUserBundle') }}" name="">
                </div>
           </li>
</ul>
       </form>
<script>
function saveGroupe(){
        $.ajax({
            type: 'post',
                url: '{{path('int_add_edit_groupe')}}',
                data: $('#form_groupe1').serialize()+'&id={{id}}',
                success: function(response) {
                    $('#liste_groupes').html(response)
                    $('#form_groupe').html('')

                }
            })
        }
    </script>

    </div>
        
